﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GalleryList.aspx.cs" Inherits="Admin_GalleryList" %>

<%@ Register Src="~/Contents/Admin.ascx" TagName="Admin" TagPrefix="contents" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>1Dot9Master</title>    
    <script src="../common/common.js" type="text/javascript"></script>
    <link href="../common/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        /************************************************************************
        아이템 신규 등록
        *************************************************************************/
        function fn_NewItemRegisteration() {
            var sUrl = "../Admin/Popup/GalleryItemReg.aspx";
            var rgParam = new Array();
            rgParam["Parameter"] = null;

            var result = fn_OpenModalDialog(sUrl, rgParam, "500", "500");
            //if (!result) return false;
        }
    </script>
    <style type="text/css">    
        .align
        {
            width: 100%;
            text-align: center;
        }
        
        .subAlign
        {
            padding-top: 5px;
            margin: 0 auto; /* 중간에 두기 위한 값 */
            width: 740px;
            text-align: right;
            height: 26px;
        }
        
        #gvItemList
        {
            margin: 0 auto; /* 중간에 두기 위한 값 */
            text-align: left;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <contents:Admin ID="Admin" runat="server" />
    </div>
    <div class="align">
        <asp:GridView ID="gvItemList" runat="server" Width="740px" AllowPaging="True" BackColor="LightGoldenrodYellow"
            BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None"
            AutoGenerateColumns="False" DataKeyNames="GUID" DataSourceID="SqlDataSource1">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
            <Columns>
                <asp:BoundField DataField="GUID" HeaderText="GUID" ReadOnly="True" SortExpression="GUID" />
                <asp:BoundField DataField="EXTENTION" HeaderText="EXTENTION" SortExpression="EXTENTION" />
                <asp:BoundField DataField="TITLE" HeaderText="TITLE" SortExpression="TITLE" />
                <asp:BoundField DataField="NOTE" HeaderText="NOTE" SortExpression="NOTE" />
                <asp:BoundField DataField="TYPE" HeaderText="TYPE" SortExpression="TYPE" />
                <asp:CheckBoxField DataField="USE_YN" HeaderText="USE_YN" SortExpression="USE_YN" />
                <asp:BoundField DataField="Column1" HeaderText="Column1" ReadOnly="True" SortExpression="Column1" />
            </Columns>
            <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
        </asp:GridView>
        <div class="subAlign">
            <asp:ImageButton ID="btnNewItem" runat="server" ImageUrl="../image/icon/new.jpg"
                OnClientClick="fn_NewItemRegisteration();return false;" OnClick="btnNewItem_Click" />
        </div>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:thiagoms %>"
        SelectCommand="UP_WorkItem_List" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    </form>
</body>
</html>
